﻿using HospitalFollowUpSystem.View;
using System;
using System.Windows.Forms;

namespace HospitalFollowUpSystem
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Form frmLogin = new FrmLogin();
            Application.Run(frmLogin);

            ////OK 是设置界面
            if (frmLogin.DialogResult.Equals(DialogResult.OK))
            {
                Form frmTemp = new FrmConfig
                {
                    StartPosition = FormStartPosition.CenterScreen
                };
                Application.Run(frmTemp);
            }
            else
            {
                //NO 是主界面
                if (frmLogin.DialogResult.Equals(DialogResult.No))
                {
                    Form frmTemp = new FrmMain
                    {
                        StartPosition = FormStartPosition.CenterScreen
                    };
                    Application.Run(frmTemp);
                }
            }
        }
    }
}
